package com.nlp.trie.probSeg;

public class CnToken {
	/**词*/
	public String termText;
	/**词的开始位置*/
	public int start;
	/**词的结束位置*/
	public int end;
	/**词在语料库中出现的频率*/
	public double logProb;
	
	public CnToken(int vertexFrom, int vertexTo, double logP, String word) {
		start = vertexFrom;
		end = vertexTo;
		termText = word;
		logProb = logP;
	}

	@Override
	public String toString() {
		return "text:"+termText+" start:"+start+" end:"+end+" cost:"+logProb;	}
}
